package lab02.test05;
import java.util.Scanner;
public class Test05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Cube cube = new Cube();
        System.out.println("请依次输入立方体的长、宽和高:");
        float length = sc.nextFloat();
        float width = sc.nextFloat();
        float height = sc.nextFloat();
        //调用Cube类中的方法
        cube.setLength(length);
        cube.setWidth(width);
        cube.setHeight(height);
        cube.volume();
    }
}
